home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form8
- Caption = "Form8"
- ClientHeight = 2775
- ClientLeft = 1785
- ClientTop = 1650
- ClientWidth = 4935
- Height = 3180
- Left = 1725
- LinkMode = 1 'Source
- LinkTopic = "Form8"
- ScaleHeight = 185
- ScaleMode = 3 'Pixel
- ScaleWidth = 329
- Top = 1305
- Width = 5055
- Begin CommandButton Command2
- Caption = "Cancel"
- Height = 375
- Left = 2160
- TabIndex = 7
- Top = 2160
- Width = 1455
- End
- Begin CommandButton Command1
- Caption = "OK"
- Height = 375
- Left = 480
- TabIndex = 6
- Top = 2160
- Width = 1455
- End
- Begin VBedit BEdit3
- CellHeight = 32
- CellWidth = 22
- CharSet = 16420
- CombBaseLine = 26
- CombEndHeight = 8
- CombEndMarker = 0 'False
- CombHeight = 4
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- InflateBottom = 12
- InflateLeft = 12
- InflateRight = 12
- InflateTop = 16
- Left = 1920
- TabIndex = 5
- Text = " ."
- Top = 1320
- Version = 268435458
- Width = 2355
- End
- Begin VBedit BEdit2
- CellHeight = 32
- CellWidth = 22
- CharSet = 16420
- CombBaseLine = 26
- CombEndHeight = 8
- CombEndMarker = 0 'False
- CombHeight = 4
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- InflateBottom = 12
- InflateLeft = 12
- InflateRight = 12
- InflateTop = 16
- Left = 1920
- TabIndex = 4
- Text = " ."
- Top = 720
- Version = 268435458
- Width = 2355
- End
- Begin VBedit BEdit1
- CellHeight = 32
- CellWidth = 22
- CharSet = 16404
- CombBaseLine = 26
- CombEndHeight = 8
- CombEndMarker = 0 'False
- CombHeight = 4
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- InflateBottom = 12
- InflateLeft = 12
- InflateRight = 12
- InflateTop = 16
- Left = 1920
- TabIndex = 3
- Top = 120
- Version = 268435458
- Width = 855
- End
- Begin Label Label3
- Caption = "Deposit:"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 1440
- Width = 735
- End
- Begin Label Label6
- Caption = "$"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 1590
- TabIndex = 10
- Top = 1395
- Width = 255
- End
- Begin Label Label2
- Caption = "Freight/UPS:"
- Height = 255
- Left = 240
- TabIndex = 1
- Top = 840
- Width = 1215
- End
- Begin Label Label5
- Caption = "$"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 18
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 1590
- TabIndex = 9
- Top = 795
- Width = 255
- End
- Begin Label Label4
- Caption = "%"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 2880
- TabIndex = 8
- Top = 240
- Width = 255
- End
- Begin Label Label1
- Caption = "Sales Tax:"
- Height = 255
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 975
- End
- Sub Command1_Click ()
- SalesTax = Val(BEdit1.Text) / 100
- Form2.Grid2.Col = 1
- Form2.Grid2.Row = 2
- Form2.Grid2.Text = BEdit2.Text
- Form2.Grid2.Row = 4
- Form2.Grid2.Text = BEdit3.Text
- CalcTotals
- Unload Form8
- End Sub
- Sub Command2_Click ()
- Unload Form8
- End Sub
- Sub Form_Load ()
- Form8.Top = (Screen.Height - Form8.Height) / 2
- Form8.Left = (Screen.Width - Form8.Width) / 2
- BEdit1.Text = Format$((Int(SalesTax * 100)), "00")
- Form2.Grid2.Col = 1
- Form2.Grid2.Row = 2
- BEdit2.Text = Format$(Val(Form2.Grid2.Text), "###0.00")
- Form2.Grid2.Row = 4
- BEdit3.Text = Format$(Val(Form2.Grid2.Text), "###0.00")
- End Sub
-